//
//  AppDelegate.swift
//  微博项目
//
//  Created by 原晓桢 on 15/11/3.
//  Copyright © 2015年 itcast.cn. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        // Override point for customization after application launch.
        
        setupAppearance()
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        window?.backgroundColor = UIColor.redColor()
        window?.rootViewController = MainTableViewController()
        window?.makeKeyAndVisible()
        
        return true
    }
    
    //设置全局外观
    private func setupAppearance(){
        
        UINavigationBar.appearance().tintColor = wbAppearanceTintColor
        UITabBar.appearance().tintColor = wbAppearanceTintColor
    }
}

